package com.huo.task.service;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.huo.filestransport.service.SftpService;
@DisallowConcurrentExecution
public class CheckFtpFileByDB implements Job {

	private final Logger logger = LoggerFactory.getLogger(getClass());
	@Autowired
	private SftpService sftpService;
	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		sftpService.checkFtpFileByDB();

	}

}
